home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
vhlogger_v2.lzh
/
ham.vh
< prev
next >
Wrap
Text File
|
1992-07-19
|
2KB
|
87 lines
/* ham.vh a rexx 02/24/92 V. Herried */
/* ham.vh Copyright (c) 1992 Vincent J. Herried
1688 Staffordshire RD.
Columbus, OH 43229
KA8CTE */
/*
Function: Read in a sequential ascii text file,
parse it, get the call signs out,
search the vhlogger data base for the call sign,
If it does not exist in my vhlogger data base then
add it.
Arguments: None
History:
Version 1 02/04/92 initial version.
Execution: From the cli, enter
<vhloggger ham.vh>
*/
options results
address "vhlogger"
/* Open the ascii input file that we are going to parse for call signs */
say "Enter a ascii input file name or 'end'?"
parse pull file
if file = "END" then exit(0)
if (open("input",file,"Read") = 0) then do
say "Open failed for file" file
exit(0)
end
x=get()
x=get()
x=get()
dateval="10/03/88" /* date of this ascii file was built */
startt=time()
count=0
do while(get())
count = count +1
parse var in callsign name ', ' address ', ' city ', ' zip phone junk junk
callsign=strip(callsign)
name=strip(name)
address=strip(address)
city=strip(city)
zip=strip(zip)
phone=strip(phone)
say "Call="callsign"Name="name"Address="address"City="city'\'
say "Zip="zip"Phone="phone'\'
update=';'callsign';'name';'dateval';;;;;'address';'city';OH;'zip';'phone
say update
'find' callsign
if rc = 0 then iterate
ans='?'
do while(ans ~= 'A' & ans ~= 'S' & ans ~= 'E')
say "reply Add, Skip, or End"
pull ans
end
if ans = 'E' then exit(0)
if ans = 'S' then iterate
'update' update
say "hit return to continue"
pull ans
end
close('input')
say "count"count "start time" startt "end time" time()
say "all done, bye"
exit(0)
get:
x=readln("input")
in=translate(x,' ','09'x,)
if x ~= '' then return(1)
else return(0)